

export default function(Vue) {
  Vue.mixin({
    data() {
      return {
        dicts: {}
      }
    },
    async created() {
      const dictsMixins = this.$options.dicts
      if(dictsMixins){
        const res = await this.$API.system.dictItem.queryBatch.post(dictsMixins);
        this.dicts = res.data
      }
    },
  })
}
